<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
	</style>
</head>
<body>
	<div id="div" style="width:200px;height: 200px;border: 1px solid;"></div>
	<script>
	    var a="";
	    var b="";
		var div=document.getElementById('div');
		for (var i = 0; i <5; i++) {
			a+="<span>*</span>";
			b+=a+"<br/>";
		}
		div.innerHTML=b;
	</script>
</body>
</html>